package main

import "fmt"

func main() {
	arr := [3]float64{1.0, 2.5, 9.5}
	x := Sum(&arr)
	fmt.Printf("数组的和是: %f ", x)
}

func Sum(a *[3]float64) (sum float64) {
	for _, v := range a {
		sum += v
	}

	return
}
